﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectGamer.DataModels
{
    public class Game
    {
        public int Id { get; set; }
        public string ApplicationUserId { get; set; }
        public string ApiKey { get; set; }
        public string Title { get; set; }
        public string Genre { get; set; }
        public string Platform { get; set; }
        public float SellPrice { get; set; }
        public float RentPrice { get; set; }
        public bool WillTrade { get; set; }
        public Condition Condition { get; set; }
        public bool IsRented { get; set; }
        public bool IsSold { get; set; }

        public virtual ApplicationUser ApplicationUser { get; set; }
        public virtual List<Rental> Rentals { get; set; }

        public Game()
        {

        }
        public Game(string userId, string apiKey, string title, string genre, string platform, float sellPrice, float rentPrice, bool willTrade, Condition condition, bool isRented, bool isSold)
        {
            ApplicationUserId = userId;
            ApiKey = apiKey;
            Title = title;
            Genre = genre;
            Platform = platform;
            SellPrice = sellPrice;
            RentPrice = rentPrice;
            WillTrade = willTrade;
            Condition = condition;
            IsRented = isRented;
            IsSold = isSold;
        }

    }
}
